//
//  TCM_HomeAuctionTableViewCell.swift
//  TCM_TradingProject
//
//  Created by 吕春海 on 2018/8/21.
//  Copyright © 2018年 lvchunhai. All rights reserved.
//

import UIKit

class TCM_HomeAuctionTableViewCell: UITableViewCell {
    @IBOutlet weak var nameLabel: UILabel!
    @IBOutlet weak var addressLabel: UILabel!
    @IBOutlet weak var clapLable: UILabel!
    @IBOutlet weak var latestLabel: UILabel!
    @IBOutlet weak var varietiesLabel: UILabel!
    @IBOutlet weak var numberLabel: UILabel!
    @IBOutlet weak var nameLabelWidth: NSLayoutConstraint!
    @IBOutlet weak var addressLabelWidth: NSLayoutConstraint!
    @IBOutlet weak var clapLableWidth: NSLayoutConstraint!
    @IBOutlet weak var latestLabelWidth: NSLayoutConstraint!
    @IBOutlet weak var varietiesLabelWidth: NSLayoutConstraint!
    @IBOutlet weak var numberLabelWidth: NSLayoutConstraint!
    @IBOutlet weak var nameView: UIView!
    @IBOutlet weak var clapView: UIView!
    @IBOutlet weak var latestView: UIView!
    @IBOutlet weak var varietiesView: UIView!
    @IBOutlet weak var numberView: UIView!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        
        if TCM_ScreenWidth == 320 {
            nameLabel.font(13)
            addressLabel.font(11)
            varietiesLabel.font(13)
            clapLable.font = UIFont(name: "Bebas Neue", size: 18)
            latestLabel.font = UIFont(name: "Bebas Neue", size: 18)
            numberLabel.font = UIFont(name: "Bebas Neue", size: 18)
            nameLabelWidth.constant = 53
            addressLabelWidth.constant = 55
            varietiesLabelWidth.constant = 53
            clapLableWidth.constant = 42
            latestLabelWidth.constant = 42
            numberLabelWidth.constant = 42
        } else {
            nameLabel.font(14)
            addressLabel.font(12)
            varietiesLabel.font(14)
            clapLable.font = UIFont(name: "Bebas Neue", size: 20)
            latestLabel.font = UIFont(name: "Bebas Neue", size: 20)
            numberLabel.font = UIFont(name: "Bebas Neue", size: 20)
            nameLabelWidth.constant = 58
            addressLabelWidth.constant = 62
            varietiesLabelWidth.constant = 58
            clapLableWidth.constant = 48
            latestLabelWidth.constant = 48
            numberLabelWidth.constant = 48
        }
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
